import baseConfig from "./baseConfig";
import i18n from "@/locales/index.js";

const { t } = i18n.global;

export class Label extends baseConfig {
  //   id = getUUID();
  name = "标签纸";
  type = "Labels";
  isProLabel = false;
  picName = "";
  labelTemplate = "";
  reelType = 1; //盘袋盒箱 0-其他 1-盘 2-袋 3-盒 4-箱
  mergeType = 1; //盘类型  0-未知 1-正常 1-合并 3-零盘
  qaStamp = false; // 是否需要印章  1-否 2-是
  qaSize = 12;
  qaStampCode = "";
  qaStampType = "";
  qaStampX = 0;
  qaStampY = 0;
  qaStampAngle = 0;
  // qaStampDesc = "";

  labelTemplateDatas = [
    {
      labelId: "15533937-05ea-462a-aff7-70611d93b7ba",
      recipeNo: 0,
      labelModel: 0,
      code: "string",
      paramName: "string",
      paramType: "string",
      paramValue: "string",
      valueType: "string",
      fontType: "string",
      fontSize: "string",
      charLenth: "string",
      position: "string",
    },
  ];
  labelPrintParam = [
    {
      labelId: "4b507edf-bfac-4252-9ba0-df61e9f66af0",
      code: "string",
      labelStoreId: 0,
      labelEX: 0,
      labelEY: 0,
      labelLocation: 0,
      printConcentration: 0,
      printSpeed: 0,
      jieZhiBianJu: 0,
      dingBuTiaoJie: 0,
      tingZhiWeiZhi: 0,
    },
  ];

  constructor(obj) {
    super();
    for (let key in obj) {
      this[key] = obj[key];
    }
  }
}

let label1 = new Label({
  length: 80,
  width: 50,
  name: t("material.label") + " 1",
  picName: "label-1",
  description: "xx1 " + t("material.labelDesc"),
  reelType: 1,
  mergeType: 1,
});
let label2 = new Label({
  length: 100,
  width: 40,
  name: t("material.label") + " 2",
  picName: "label-1",
  description: "xx2 " + t("material.labelDesc"),
  reelType: 1,
  mergeType: 1,
});
let label3 = new Label({
  length: 100,
  width: 50,
  name: t("material.label") + " 3",
  picName: "label-1",
  description: "xx3 " + t("material.labelDesc"),
  reelType: 1,
  mergeType: 1,
});

export default [label1, label2, label3];
